import request from '@/utils/request'
/*
  获取分类列表
*/
export function getCategoryList(data: any) {
  return request({
    url: '/api/corp/wechat/category/list',
    method: 'post',
    data,
  })
}
/*
  获取所有分类
*/
export function getCategoryAll(data: any) {
  return request({
    url: '/api/corp/wechat/category/all',
    method: 'post',
    data,
  })
}
/*
  获取分类账号池
*/
export function getCategoryPool(data: any) {
  return request({
    url: '/api/corp/wechat/category/pool',
    method: 'post',
    data,
  })
}
/*
  更新分类
*/
export function doEdit(data: any) {
  return request({
    url: '/api/corp/wechat/category/save',
    method: 'post',
    data,
  })
}
/*
  删除分类
*/
export function doDelete(data: any) {
  return request({
    url: '/api/corp/wechat/category/delete',
    method: 'post',
    data,
  })
}
